package xz.service.user.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import xz.facade.user.model.Employee;
import xz.facade.user.service.EmpFacade;
import xz.service.user.service.EmployeeService;

/**
 * 
 * EmpFacadeImpl
 *  longbh
 * <p>desc</p>
 * 2016-1-4 下午10:24:09
 */
@Service("empFacade")
public class EmpFacadeImpl implements EmpFacade{
	@Autowired
	private EmployeeService employeeService;

	@Override
	public void insertEmp(Employee emp) {
		employeeService.insertEmp(emp);
	}

	@Override
	public void updateEmp(Employee emp) {
		employeeService.updateEmp(emp);
	}

	@Override
	public String getEmp(String empId) {
		return employeeService.getEmp(empId);
	}

	@Override
	public void deleteEmp(String empId) {
		employeeService.deleteEmp(empId);
	}

	@Override
	public List getEmpByConditon(Map params) {
		return employeeService.getEmpByConditon(params);
	}

	@Override
	public int getEmpTotal(Map params) {
		return employeeService.getEmpTotal(params);
	}
}
